<%-- 
    Document   : logout
    Created on : Jul 2, 2008, 3:31:06 PM
    Author     : r_uddie
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="user" scope="page" class="Beans.User" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Logout Page</title>
    </head>
    <body>
        <h2>Signed-In Users</h2><br />
        
        <%        
        user = (Beans.User) session.getAttribute("user");
        
        if( user == null )
        {
            %> No User has been Connected <%
        }
        else
        {
            %> <form method="POST" action="LogoutServlet" > <%
            out.println( user.getFirstName() + " " + user.getLastName() ); 
            %> <input type="submit" value="Logout" /></form> <%
        }
        %>
        
    </body>
</html>
